<template>
</template>

<script>

export default {
  props: [
  　　'field',
　],
  methods: {
    callafter(res) {
      if (res.code != 200) {
        return;
      }
      var user = this.$store.state.auth.user;
      user.color = res.data.color;
      user.tableExpand = res.data.tableExpand;
      user.sideExpand = res.data.sideExpand;
      user.saveAndClose = res.data.saveAndClose;
      user.preferredPageSize = res.data.preferredPageSize;
      this.$store.dispatch('refreshUser', user);
      this.$store.dispatch('switchColor', this.$store.state.auth.user.color);
    },
  }
}
</script>
